package com.daka.vo.response.org;

import com.daka.entity.Activity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * Created by yangx
 * CreateTime: 2016/12/6 9:17
 */

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class AddressActResponseVo {

    private Integer id;
    private String name;            //活动名称
    private String address;         //活动地址
    private String addressDet;         //活动详细地址地址
    private String demo;            //活动简介
    private String startTime;       //开始日期
    private String endTime;         //结束日期
    private String skill;           //本次活动所需求的服务技能
    private Integer scope;              //签到误差范围

    private String monitor;      //活动负责人
    private String mobile; //电话

    public static AddressActResponseVo build(Activity activity) {
        AddressActResponseVo addressActResponseVo = new AddressActResponseVo();
        addressActResponseVo.setId(activity.getId());
        addressActResponseVo.setName(activity.getName());
        addressActResponseVo.setAddress(activity.getProvince() + activity.getCity() + activity.getDistrict());
        addressActResponseVo.setAddressDet(activity.getAddress());
        addressActResponseVo.setDemo(activity.getDemo());
        addressActResponseVo.setStartTime(activity.getStartTime());
        addressActResponseVo.setEndTime(activity.getEndTime());
        addressActResponseVo.setSkill(activity.getSkill());
        addressActResponseVo.setScope(activity.getScope());
        return addressActResponseVo;
    }

}
